/// id : 1
/// name : "永泰光储充示范站"
/// voltageClass : 1.0
/// transformerCapacity : 800.0
/// photovoltaicInstalledCapacity : 133.4
/// energyStoragePower : 100.0
/// energyStorageCapacity : 215.0
/// chargingStationCapacity : 1267.0
/// address : "广东省深圳市南山区桃源街道二线公路"
/// createTime : "2023-05-13 14:13:37"
/// createByName : "系统管理员"
/// deliveryTime : "2023-06-07 14:34:30"
/// deliveryByName : "系统管理员"
/// agentName : "服务商1111"
/// constructionStatus : 1
/// logo : ""
/// photos : ""
/// longitude : 113.99702600
/// latitude : 22.60406300
/// adcode : 440305
/// remarks : ""
/// taskId : null
/// energyOptions : "123"
/// orgs : [{"orgId":189,"orgName":"任务管理安装商"},{"orgId":159,"orgName":"赫为"},{"orgId":169,"orgName":"测试安装商2"},{"orgId":156,"orgName":"永泰服务商"},{"orgId":115,"orgName":"服务商1111"},{"orgId":170,"orgName":"测试运营商2"}]

class SiteDetailModel {
  SiteDetailModel({
      num? id, 
      String? name,
      int? map,
      int? timeZone,
      num? voltageClass, 
      num? transformerCapacity, 
      num? photovoltaicInstalledCapacity, 
      num? energyStoragePower, 
      num? energyStorageCapacity, 
      num? chargingStationCapacity, 
      String? address, 
      String? createTime, 
      String? createByName, 
      String? deliveryTime, 
      String? deliveryByName, 
      String? agentName, 
      num? constructionStatus, 
      String? logo, 
      String? photos, 
      num? longitude, 
      num? latitude, 
      num? adcode, 
      String? remarks, 
      dynamic taskId, 
      String? energyOptions, 
      List<Orgs>? orgs,}){
    _id = id;
    _name = name;
    _voltageClass = voltageClass;
    _transformerCapacity = transformerCapacity;
    _photovoltaicInstalledCapacity = photovoltaicInstalledCapacity;
    _energyStoragePower = energyStoragePower;
    _energyStorageCapacity = energyStorageCapacity;
    _chargingStationCapacity = chargingStationCapacity;
    _address = address;
    _createTime = createTime;
    _createByName = createByName;
    _deliveryTime = deliveryTime;
    _deliveryByName = deliveryByName;
    _agentName = agentName;
    _constructionStatus = constructionStatus;
    _logo = logo;
    _photos = photos;
    _longitude = longitude;
    _latitude = latitude;
    _adcode = adcode;
    _map = map;
    _timeZone = timeZone;
    _remarks = remarks;
    _taskId = taskId;
    _energyOptions = energyOptions;
    _orgs = orgs;
}

  SiteDetailModel.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _voltageClass = json['voltageClass'];
    _transformerCapacity = json['transformerCapacity'];
    _photovoltaicInstalledCapacity = json['photovoltaicInstalledCapacity'];
    _energyStoragePower = json['energyStoragePower'];
    _energyStorageCapacity = json['energyStorageCapacity'];
    _chargingStationCapacity = json['chargingStationCapacity'];
    _address = json['address'];
    _createTime = json['createTime'];
    _createByName = json['createByName'];
    _deliveryTime = json['deliveryTime'];
    _deliveryByName = json['deliveryByName'];
    _agentName = json['agentName'];
    _constructionStatus = json['constructionStatus'];
    _logo = json['logo'];
    _photos = json['photos'];
    _longitude = json['longitude'];
    _latitude = json['latitude'];
    _adcode = json['adcode'];
    _map = json['map'];
    _timeZone = json['timeZone'];
    _remarks = json['remarks'];
    _taskId = json['taskId'];
    _energyOptions = json['energyOptions'];
    if (json['orgs'] != null) {
      _orgs = [];
      json['orgs'].forEach((v) {
        _orgs?.add(Orgs.fromJson(v));
      });
    }
  }
  num? _id;
  String? _name;
  num? _voltageClass;
  num? _transformerCapacity;
  num? _photovoltaicInstalledCapacity;
  num? _energyStoragePower;
  num? _energyStorageCapacity;
  num? _chargingStationCapacity;
  String? _address;
  String? _createTime;
  String? _createByName;
  String? _deliveryTime;
  String? _deliveryByName;
  String? _agentName;
  num? _constructionStatus;
  String? _logo;
  String? _photos;
  num? _longitude;
  num? _latitude;
  num? _adcode;
  String? _remarks;
  dynamic _taskId;
  int ? _map;
  int ? _timeZone;
  String? _energyOptions;
  List<Orgs>? _orgs;
SiteDetailModel copyWith({  num? id,
  String? name,
  num? voltageClass,
  num? transformerCapacity,
  num? photovoltaicInstalledCapacity,
  num? energyStoragePower,
  num? energyStorageCapacity,
  num? chargingStationCapacity,

  String? address,
  String? createTime,
  String? createByName,
  String? deliveryTime,
  String? deliveryByName,
  String? agentName,
  num? constructionStatus,
  String? logo,
  String? photos,
  num? longitude,
  num? latitude,
  num? adcode,
  int? map,
  int? timeZone,
  String? remarks,
  dynamic taskId,
  String? energyOptions,
  List<Orgs>? orgs,
}) => SiteDetailModel(  id: id ?? _id,
  name: name ?? _name,

  voltageClass: voltageClass ?? _voltageClass,
  transformerCapacity: transformerCapacity ?? _transformerCapacity,
  photovoltaicInstalledCapacity: photovoltaicInstalledCapacity ?? _photovoltaicInstalledCapacity,
  energyStoragePower: energyStoragePower ?? _energyStoragePower,
  energyStorageCapacity: energyStorageCapacity ?? _energyStorageCapacity,
  chargingStationCapacity: chargingStationCapacity ?? _chargingStationCapacity,
  address: address ?? _address,
  createTime: createTime ?? _createTime,
  createByName: createByName ?? _createByName,
  deliveryTime: deliveryTime ?? _deliveryTime,
  deliveryByName: deliveryByName ?? _deliveryByName,
  agentName: agentName ?? _agentName,
  constructionStatus: constructionStatus ?? _constructionStatus,
  logo: logo ?? _logo,
  photos: photos ?? _photos,
  longitude: longitude ?? _longitude,
  latitude: latitude ?? _latitude,
  adcode: adcode ?? _adcode,
  map: map ?? _map,
  timeZone: timeZone ?? _timeZone,
  remarks: remarks ?? _remarks,
  taskId: taskId ?? _taskId,
  energyOptions: energyOptions ?? _energyOptions,
  orgs: orgs ?? _orgs,
);
  num? get id => _id;
  String? get name => _name;
  num? get voltageClass => _voltageClass;
  num? get transformerCapacity => _transformerCapacity;
  num? get photovoltaicInstalledCapacity => _photovoltaicInstalledCapacity;
  num? get energyStoragePower => _energyStoragePower;
  num? get energyStorageCapacity => _energyStorageCapacity;
  num? get chargingStationCapacity => _chargingStationCapacity;
  String? get address => _address;
  String? get createTime => _createTime;
  String? get createByName => _createByName;
  String? get deliveryTime => _deliveryTime;
  String? get deliveryByName => _deliveryByName;
  String? get agentName => _agentName;
  num? get constructionStatus => _constructionStatus;
  String? get logo => _logo;
  String? get photos => _photos;
  num? get longitude => _longitude;
  num? get latitude => _latitude;
  num? get adcode => _adcode;
  int? get map => _map;
  int? get timeZone => _timeZone;
  String? get remarks => _remarks;
  dynamic get taskId => _taskId;
  String? get energyOptions => _energyOptions;
  List<Orgs>? get orgs => _orgs;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['voltageClass'] = _voltageClass;
    map['transformerCapacity'] = _transformerCapacity;
    map['photovoltaicInstalledCapacity'] = _photovoltaicInstalledCapacity;
    map['energyStoragePower'] = _energyStoragePower;
    map['energyStorageCapacity'] = _energyStorageCapacity;
    map['chargingStationCapacity'] = _chargingStationCapacity;
    map['address'] = _address;
    map['createTime'] = _createTime;
    map['createByName'] = _createByName;
    map['deliveryTime'] = _deliveryTime;
    map['deliveryByName'] = _deliveryByName;
    map['agentName'] = _agentName;
    map['constructionStatus'] = _constructionStatus;
    map['logo'] = _logo;
    map['photos'] = _photos;
    map['longitude'] = _longitude;
    map['latitude'] = _latitude;
    map['adcode'] = _adcode;
    map['timeZone'] = _timeZone;
    map['map'] = _map;
    map['remarks'] = _remarks;
    map['taskId'] = _taskId;
    map['energyOptions'] = _energyOptions;
    if (_orgs != null) {
      map['orgs'] = _orgs?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// orgId : 189
/// orgName : "任务管理安装商"

class Orgs {
  Orgs({
      num? orgId, 
      String? orgName,}){
    _orgId = orgId;
    _orgName = orgName;
}

  Orgs.fromJson(dynamic json) {
    _orgId = json['orgId'];
    _orgName = json['orgName'];
  }
  num? _orgId;
  String? _orgName;
Orgs copyWith({  num? orgId,
  String? orgName,
}) => Orgs(  orgId: orgId ?? _orgId,
  orgName: orgName ?? _orgName,
);
  num? get orgId => _orgId;
  String? get orgName => _orgName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['orgId'] = _orgId;
    map['orgName'] = _orgName;
    return map;
  }

}